package com.weibo4terios.dao;

import java.io.Serializable;



/**  
 * AuthorizeUser.java
 * 2012-10-7 下午5:48:04
 * @author Wang Tengrui
 * 已经在本应用上授权的用户  
 */
public class AuthorizeUser implements Serializable
{
	private static final long serialVersionUID = -2284954356791406516L;
	private String uid;
	private String screen_name;
	private String access_token;
	private String expires_in;//access_token的过期时间
	private byte[] userIcon;
	private String expires_date;

	
	public AuthorizeUser(String uid,String screen_name,String access_token,String expires_in,byte[] userIcon,String expires_date)
	{
		this.uid = uid;
		this.screen_name = screen_name;
		this.access_token = access_token;
		this.expires_in = expires_in;
		this.userIcon = userIcon;
		this.setExpires_date(expires_date);
	}
	
	public String getUid()
	{
		return uid;
	}
	public void setUid(String uid)
	{
		this.uid = uid;
	}
	public String getScreen_name()
	{
		return screen_name;
	}
	public void setScreen_name(String screen_name)
	{
		this.screen_name = screen_name;
	}
	public String getAccess_token()
	{
		return access_token;
	}
	public void setAccess_token(String access_token)
	{
		this.access_token = access_token;
	}
	public String getExpires_in()
	{
		return expires_in;
	}
	public void setExpires_in(String expires_in)
	{
		this.expires_in = expires_in;
	}
	public byte[] getUserIcon()
	{
		return userIcon;
	}
	public void setUserIcon(byte[] userIcon)
	{
		this.userIcon = userIcon;
	}

	public String getExpires_date() {
		return expires_date;
	}

	public void setExpires_date(String expires_date) {
		this.expires_date = expires_date;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		
		return screen_name;
	}
	
}
